package ntu.metaweb.result;

import ntu.metaweb.storage.WebPageQuery;

import com.thoughtworks.xstream.annotations.XStreamAlias;

@XStreamAlias("xmlresponse")
public class Title {
	public int returncode;
	public String title;
	
	public Title(WebPageQuery webpagequery) {
		if (webpagequery == null) {
			this.title = "";
		} else {
			this.title = webpagequery.getTitle();
		}
		this.returncode = 1;
	}
}
